package com.bio.entity.attachemnt;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

import net.sf.json.JSONObject;

import com.bio.entity.BaseObject;

@MappedSuperclass
public class BaseObjectAttachment extends BaseObject {

	private static final long serialVersionUID = 7357128828590452439L;

	private transient List<Attachment> attachments;

	private String attachmentsInfo;

	private transient List<JSONObject> attachJSON;
	
	private transient List<String> toDeletePics;
	
	@Transient()
	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}

    @Column(name="attachmentsInfo")
	public String getAttachmentsInfo() {
		return attachmentsInfo;
	}

	public void setAttachmentsInfo(String attachmentsInfo) {
		this.attachmentsInfo = attachmentsInfo;
	}

	@Transient()
	public List<JSONObject> getAttachJSON() {
		return attachJSON;
	}

	public void setAttachJSON(List<JSONObject> attachJSON) {
		this.attachJSON = attachJSON;
	}

	@Transient()
	public List<String> getToDeletePics() {
		return toDeletePics;
	}

	public void setToDeletePics(List<String> toDeletePics) {
		this.toDeletePics = toDeletePics;
	}
}
